package cn.com.winson.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.winson.dao.UserMapper;
import cn.com.winson.domin.User;
import cn.com.winson.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
    private UserMapper userMapper;
	
	@Override
	public List<User> getAllUser() {
		return userMapper.selectAllUser();
	}
	
	@Override
	public User getUserById(String id) {
		return userMapper.selectByPrimaryKey(id);
	}

}
